<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh">
<head>
    <title>源の小屋</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%
    String str;
    if(session.getAttribute("username")==null)
        str="login/dgut";
    else
        str="LogoutServlet";
%>
<form action=<%=str%> enctype="multipart/form-data" method ="post" >
    <%if(str=="login/dgut"){%>
    <input type="submit" name="login" value="登录" />
    <% }%>
    <%if(str=="LogoutServlet"){%>
    <p><%=session.getAttribute("username")%>
    <br/><%=session.getAttribute("name")%>
    <br/><%=session.getAttribute("group")%>
    <br/><%=session.getAttribute("openid")%><
    <br/><%=session.getAttribute("wx_openid")%></p>
    <input type="submit" name="login" value="退出" />
    <% }%>
</form>
</body>
</html>
